/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.buzzwords.factories;

import com.buzzwords.behaviors.BuzzwordIDBehavior;
import com.buzzwords.behaviors.DatabaseBehavior;
import com.buzzwords.dataaccess.Database;
import com.buzzwords.dataaccess.DatabaseDAO;

/**
 *
 * @author potlow
 */
public class BuzzwordDatabaseFactory extends DatabaseFactory {

    public BuzzwordDatabaseFactory() {
        super("BuzzwordsPU");
    }

    @Override
    protected DatabaseBehavior createDatabaseBehavior(String type) {
        if(type.equals("Buzzword ID")) {
            return new BuzzwordIDBehavior();
        }
        return null;
    }

    @Override
    protected Database createDatabase() {
        return new DatabaseDAO();
    }
}
